package com.health.userbackstage.web.interceptor;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author ASUS
 * @Date 2023/8/22 14:39
 * @Version 1.0
 */
//@Configuration
public class WebMVCConfigurer implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor((new CorsInterceptor())).addPathPatterns("/**");
    }
}
